package com.allwees.bs.c.module.order.repository;

import com.allwees.bs.c.module.base.repository.BaseRepository;
import com.allwees.bs.c.module.order.entity.OrderBalanceEntity;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface OrderBalanceRepository extends BaseRepository<OrderBalanceEntity, Long> {
    @Query(value = "select t from OrderBalanceEntity t where t.orderUuid = :orderUuid")
    List<OrderBalanceEntity> findBalanceByOrderUuid(@Param("orderUuid") String orderUuid);
}
